/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package etherblocks.engine.network.messages;

import com.jme3.math.Vector3f;
import com.jme3.network.serializing.Serializable;

/**
 *
 * @author Carl
 */
@Serializable()
public class Message_PlayerState extends Message_Player{

    public Message_PlayerState(){
        
    }

    public Message_PlayerState(int playerID, Vector3f location, Vector3f viewDirection, boolean isMoving){
        super(playerID);
        this.location = location;
        this.viewDirection = viewDirection;
        this.isMoving = isMoving;
    }
    private Vector3f location;
    private Vector3f viewDirection;
    private boolean isMoving;

    public Vector3f getLocation() {
        return location;
    }

    public Vector3f getViewDirection(){
        return viewDirection;
    }

    public boolean isMoving(){
        return isMoving;
    }
    
    @Override
    public boolean isReliable(){
        return false;
    }
}
